package tiny.soft.com.api.userinfo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tiny.soft.com.common.bean.ResultBean;
import tiny.soft.com.service.userinfo.UserInfoService;

/**
 * @className:UserInfoRest
 * @Author: 宋晓虎
 * @Description: ${description}
 * @Date: 2019/12/25 17:22:19
 */
@RestController
@Validated
@Slf4j
public class UserInfoRest {

    @Autowired
    UserInfoService userInfoService;

    @GetMapping("getUserInfoByAccountName")
    public ResultBean getUserInfoByAccountName(String name){
        return ResultBean.setBean(userInfoService.getUserInfo( name));
    }
}
